package powers;

import abilities.Ability;
import defenses.Defense;

/**
 * calculating which ability to attack which defense
 * 
 * @author bjo013
 * 
 */
public class AttackVs
{
	Ability ability;
	Defense defense;

	/**
	 * Constructor for attackVs
	 * 
	 * @param ability
	 *            the ability that the attack uses
	 * @param defense
	 *            the defense stat the attack is vs.
	 */
	public AttackVs(Ability ability, Defense defense)
	{
		this.ability = ability;
		this.defense = defense;
	}

	/**
	 * gets defense
	 * 
	 * @return defense
	 */
	public Defense getDefense()
	{
		return defense;
	}

	/**
	 * gets ability
	 * 
	 * @return ability
	 */
	public Ability getAbility()
	{
		return ability;
	}

	@Override
	public String toString()
	{
		return ability + " vs. " + defense;
	}
}
